/*************************************************************************
> File Name: 06_union.c
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-27 17:41:11
> Description: 联合体和大小端
************************************************************************/

#include <stdio.h>

int main(int argc, char const *argv[])
{
    typedef union flag
    {
        int inetger;
        char character;
    } Flag;
    Flag f;
    f.inetger = 0x12345678;
    printf("%p\n", f.inetger);
    printf("%p\n", f.character);
    if (f.character == 0x78)
    {
        printf("\n");
    }

    return 0;
}
